package com.ruoyi.manage.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 所有订单对象 orders
 *
 * @author ruoyi
 * @date 2024-10-22
 */
@Data
public class Orders extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long ID;

    /**
     * 订单DI
     */
    @Excel(name = "订单DI")
    private String orderId;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String orderName;

    /**
     * 字数
     */
    @Excel(name = "字数")
    private Long orderNum;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadTime;

    /**
     * 要求
     */
    @Excel(name = "要求")
    private String orderRequire;

    /**
     * 写手ID
     */
    private Long writerId;

    /**
     * 写手
     */
    private String writerName;
    /**
     * 状态
     */
    @Excel(name = "状态")
    private String orderStatus;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private Long orderMoney;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("ID", getID())
                .append("orderId", getOrderId())
                .append("orderName", getOrderName())
                .append("orderNum", getOrderNum())
                .append("deadTime", getDeadTime())
                .append("orderRequire", getOrderRequire())
                .append("writerId", getWriterId())
                .append("orderStatus", getOrderStatus())
                .append("orderMoney", getOrderMoney())
                .toString();
    }
}
